import Vue from 'vue'
import VueRouter from 'vue-router'
import Goods from '@/views/goods/Goods.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/goods'
  },
  {
    path: '/goods',
    component: Goods
  },
  {
    path: '/ratings',
    component: () => import('@/views/ratings/Ratings')
  },
  {
    path: '/shop',
    component: () => import('@/views/shop/Shop')
  }
]

const router = new VueRouter({
  routes
})

export default router
